package my.springboot.validation.verify;

import java.util.List;

import my.springboot.validation.verify.CharCheck.CharEnum;

public class User {
	@CharCheck(value = {CharEnum.exceptEmoji},message = "name不能输入表情")
	private String name;
	
	@CharCheck(value = {CharEnum.exceptEmoji},message = "otherName不能输入表情")
	private List<String> otherNames;

	
	public User(String name) {
		super();
		this.name = name;
	}

	public User(String name, List<String> otherNames) {
		super();
		this.name = name;
		this.otherNames = otherNames;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getOtherNames() {
		return otherNames;
	}

	public void setOtherNames(List<String> otherNames) {
		this.otherNames = otherNames;
	}
	
}
